<template>
	<view class="leave-examine-card">
		<view class="card-wrap">
			<view class="card-content">
				<view class="card-head">
					<person-infrom :propName="quitData.data.creator.name" :propNum="quitData.data.creator.code" propDepartment=""></person-infrom>
					<view class="leave-inform">
						<view class="reason">申请日期</view>
						<view class="days">{{quitData.data.apply_date}}</view>
					</view>
				</view>
				<view class="basic-inform">
					<view class="basic-time">
						<view >
							<view class="star-time-wrap">
								<view class="time-title">离职原因:</view>
								<view class="time">{{ quitData.data.sreason.name }}</view>
							</view>
							<view class="star-time-wrap">
								<view class="time-title">离职说明:</view>
								<view class="time">{{ quitData.data.memo }}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="card-btn">
				<my-button type="plain" @click="handleExit" height="60"  width="160">离职驳回</my-button>
				<my-button @click="handleAdopt" height="60" width="160">离职通过</my-button>
			</view>
		</view>
	</view>
</template>

<script>
	import apiData from '../../common/utils/apiData.js'
	import service from '../../common/service/new_file.js'
	import utils from '../../common/utils/utils.js'
export default {
	name: 'quit-examine-card',
	data() {
		return {
			sumDays:0,
		};
	},
	props: {
		quitData: {
			type: Object
		}
	},
	methods: {
		handleExit() {
			this.$emit('exit', this.quitData);
		},
		handleAdopt() {
			this.$emit('adopt', this.quitData);
		},
	},
	created() {
	},
	mounted() {
	},	
	watch: {
	}
};
</script>

<style lang="scss" scoped>
	.card-head{
		display: flex;
		justify-content: space-between;
		align-items: center;
		.leave-inform{
			display: flex;
			font-size: 24rpx;
			color: red;
			.reason{
				margin-right: 20rpx;
			}
		}
	}
.leave-examine-card {
	padding: 0 36rpx;
	.card-wrap {
		padding: 32rpx 28rpx 20rpx 28rpx;
		box-shadow: 0px 4px 12px 0px rgba(70, 66, 130, 0.1);
		border-radius: 8px;
		.card-content {
			border-bottom: 1px solid #e5e5e5;
			.basic-inform {
				padding: 16rpx 0 16rpx 0;
				display: flex;
				justify-content: space-between;
				.basic-time {
					font-size: 24rpx;
					.star-time-wrap {
						padding: 8rpx 0;
						display: flex;
						.time-title {
							margin-right: 10rpx;
							color: #a7a3a3;
						}
						.time {
							color: #4a4a4a;
						}
					}
				}
				.leave-inform {
					display: flex;
					justify-content: space-between;
					align-items: center;
					font-size: 30rpx;
					margin: auto 0;
					.days {
						margin-left: 20rpx;
						font-size: 30rpx;
					}
				}
			}
		}
		.card-btn {
			display: flex;
			padding-top: 18rpx;
			justify-content: flex-end;
		}
	}
}
</style>
